<UserControl x:Class="ConverterSystems.Workstation.Views.AxisView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:cs="http://schemas.convertersystems.com/workstation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:v="clr-namespace:ConverterSystems.Workstation.Views"
             xmlns:vm="clr-namespace:ConverterSystems.Workstation.ViewModels"
             d:DataContext="{d:DesignInstance Type=vm:AxisViewModel}"
             d:DesignHeight="600"
             d:DesignWidth="800"
             mc:Ignorable="d">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="101*" />
            <ColumnDefinition Width="699*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.ColumnSpan="2"
                    Height="29"
                    VerticalAlignment="Top"
                    Orientation="Horizontal">
            <Button Command="NavigationCommands.BrowseBack" Content="{Binding Source={Localization:Translate Word=Back}}" />
        </StackPanel>
        <TextBlock Grid.Row="1"
                   Grid.ColumnSpan="2"
                   Style="{StaticResource SubheaderTextStyle}">
            A Parameterized View
        </TextBlock>
        <TextBlock Grid.Row="2"
                   Grid.ColumnSpan="2"
                   Style="{StaticResource BasicTextStyle}">
            When navigating to a view, you can pass parameters in the query string that may be used by the view or view-model. In this example, the navigation command passed parameters 'startNodeId' and 'displayName' that the view-model used to modify the MonitoredItem of the Subscription.
        </TextBlock>

        <Label Grid.Row="3"
               HorizontalAlignment="Left"
               VerticalAlignment="Center"
               Content="{Binding DisplayName}" />
        <TextBlock Grid.Row="3"
                   Grid.Column="1"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Center"
                   Text="{Binding Axis}" />
    </Grid>
</UserControl>
